package com.spica.platform.oauth.server;

import com.spica.platform.feign.annotation.EnableFeignInterceptor;
import com.spica.platform.feign.config.GlobalFeignConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignInterceptor
@EnableFeignClients(defaultConfiguration= GlobalFeignConfig.class, basePackages = "com.spica.platform.base.feign")
@EnableCaching
public class AuthServerApp {
	
	public static void main(String[] args) {
//		固定端口启动
//		SpringApplication.run(OpenAuthServerApp.class, args);
		
		
		SpringApplication app = new SpringApplication(AuthServerApp.class);
//		//随机端口启动
//        app.addListeners(new PortApplicationEnvironmentPreparedEventListener());
        app.run(args);
		
	}

}
 